
class Verbose:
    """
    VERBOSE_LEVEL setting:
    0: no output
    ---
    1-9: information
        1: main information
        2-9: more information
    ---
    >=10: verbos information
    -----------------------
    Usage example:
    verbose = Verbose()
    verbose.set_verbos_level(1)
    verbose.echo("output-str-1",1)
    verbose.echo("debug-str-2",10)
    echo = verbose.echo
    echo("str",1)
    """
    VERBOSE_LEVEL = 1 #on defaut, output main information
    
    def set_verbose_level(self,level):
        """Set VERBOSE_LEVEL as level."""
        Verbose.VERBOSE_LEVEL = level

    def echo(self,tag,level=1):
        """
        Echo a string(tag) if VERBOSE_LEVEL is higher than level.
        """
        if level <= Verbose.VERBOSE_LEVEL:
            print tag
